﻿using System;

namespace ITSP_Instance_Generator
{
    class Node
    {
        public int Number { get; private set; } // the index/number/label of this node
        public int NumberOfVisits { get; set; } // the number of times this node has to be visited
        public Position Position { get; private set; }

        public Node(int number, int numberOfVisits, Position position)
        {
            Number = number;
            NumberOfVisits = numberOfVisits;
            Position = position;
        }
        public Node(int number, int numberOfVisits) : this(number, numberOfVisits, null)
        {
        }

        public Node Clone()
        {
            return new Node(Number, NumberOfVisits, Position.Clone());
        }
    }
}
